package com.gjzhao.fmmall.service.impl;

import com.gjzhao.fmmall.dao.WebLogMapper;
import com.gjzhao.fmmall.entity.WebLog;
import com.gjzhao.fmmall.service.WebLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Description: 日志记录 ServiceImpl
 * @Author: gjzhao
 * @Date Created in 2022-01-21 2:13 下午
 */
@Service
public class WebLogServiceImpl implements WebLogService {

    @Autowired
    private WebLogMapper webLogMapper;

    /**
     * 添加日志记录
     * @param weblog
     * @return
     */
    @Override
    public int add(WebLog weblog) {
        return webLogMapper.insertWeblog(weblog);
    }
}
